package com.bwie.system.api;

import com.bwie.common.domain.User;
import com.bwie.common.result.Result;
import com.bwie.system.api.factory.SystemRemoteServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * <p>ClassName：SystemRemoteService</p >
 * <p>Description：</p >
 * <p>Author：liuchang</p >
 * <p>Date：2024/3/22</p >
 */
@FeignClient(value = "bwie-system",fallbackFactory = SystemRemoteServiceFallback.class)
public interface SystemRemoteService {
    @PostMapping("/system/findByPhone/{phone}")
    public Result<User> findByPhone(@PathVariable("phone") String phone);
}
